package net.butfly.albacore.dao.proxy;

import java.io.Serializable;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

import net.butfly.albacore.dao.base.EntityDAO;
import net.butfly.albacore.entity.BasicEntity;

@Deprecated
public class EntityDAOProxy implements InvocationHandler {
	@SuppressWarnings("unchecked")
	public static <E extends BasicEntity<K>, K extends Serializable> EntityDAO<E, K> newDAOInstance(
			Class<? extends EntityDAO<E, K>> daoClass) {
		return (EntityDAO<E, K>) Proxy.newProxyInstance(daoClass.getClassLoader(), new Class<?>[] { daoClass },
				new EntityDAOProxy());
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		// TODO Auto-generated method stub
		return null;
	}
}
